package com.mindata.blockmanager.utils;


import org.apache.commons.lang3.StringUtils;

public class RequestThreadLocal {

	public static final ThreadLocal<String> serviceApiNames = new ThreadLocal<String>();

	public static final void set(String serviceApiName) {
		serviceApiNames.set(serviceApiName);
	}

	public static String get() {
		String name = serviceApiNames.get();
		name = StringUtils.defaultString(name, "unknowuri");
		return name;
	}

}
